package model

import "gorm.io/gorm"

type Live struct {
	gorm.Model
	LiveId     uint   `gorm:"type:bigint(20);not null;comment:直播间id"`
	UserId     uint   `gorm:"type:bigint(20);not null;comment:开直播的用户id"`
	Name       string `gorm:"type:varchar(20);not null;comment:昵称"`
	Sex        string `gorm:"type:varchar(20);not null;comment:性别"`
	Title      string `gorm:"type:varchar(255);not null;comment:直播标题"`
	StartTime  string `gorm:"type:varchar(255);not null;comment:直播开始时间"`
	EndTime    string `gorm:"type:varchar(255);not null;comment:直播结束时间"`
	LiveStatus uint   `gorm:"type:bigint(20);not null;comment:直播状态: 1:未直播 2:直播中 3:已结束"`
	Image      string `gorm:"type:varchar(255);not null;comment:直播封面"`
}
